package com.rran.study.designpattern.behavioral.command.command;

import com.rran.study.designpattern.behavioral.command.receiver.Bartender;
import com.rran.study.designpattern.behavioral.command.receiver.Receiver;

/**
 * 需要酒的命令
 */
public class NeedBartenderCommand implements Command {
    private final Receiver receiver;

    public NeedBartenderCommand() {
        this.receiver = new Bartender();
    }

    @Override
    public void execute() {
        receiver.doAction();
    }
}
